﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhp.Model.Chat
{
    /// <summary>
    /// 
    /// </summary>
    public class ChatUserModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 聊天用户ID
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 聊天用户名称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 聊天好友用户ID
        /// </summary>
        public long TouserId { get; set; }

        /// <summary>
        /// 聊天好友备注
        /// </summary>
        public string ToNickName { get; set; }

        /// <summary>
        /// 聊天好友头像
        /// </summary>
        public string ToUserAvatar { get; set; }

        /// <summary>
        /// 是否为群聊
        /// </summary>
        public bool IsGroupChat { get; set; }

        /// <summary>
        /// 互为好友共用ID,用作查询聊天记录
        /// </summary>
        public long PairID { get; set; }

        /// <summary>
        /// 排序，可以用来做置顶功能
        /// </summary>
        public decimal Order { get; set; }

        /// <summary>
        /// 最新消息
        /// </summary>
        public string LastMessage { get; set; }

        /// <summary>
        /// 最新时间
        /// </summary>
        public DateTime LastTime { get; set; }
    }

}
